var printNumbers = function(n) {
	const number = Math.pow(10, n) - 1;
	return Array.from({length: number}, (item, index) => index + 1)
};
console.log(printNumbers(3));